import Mock from 'mockjs'
const city_data=Mock.mock({
    "list|100":[{
       city:"@city",
       id:"@id" 
    }]
})

const ticket_data=Mock.mock({
    "list|100":[
        {
            id:"@id",
            "title|1":["高铁","动车","绿皮车"],
            "price|50-400":50,
            from:"@city",
            to:"@city",
            time:"@date",
            "stock|0-100":0
        }
    ]
})
Mock.mock('/api/city',{
    code:0,
    data:city_data
})

Mock.mock('/api/ticket',{
    code:0,
    data:ticket_data
})